package com.wx.entity;

import com.wx.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@Table(name = "sys_authority")
@ApiModel(value = "sysAuthority")
public class SysAuthority extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -1875702988552461507L;

    /**
     * 菜单id
     */
    @Column(name = "menu_id")
    @ApiModelProperty(value = "菜单id")
    private String menuId;

    /**
     * 权限编码
     */
    @Column(name = "authority_code")
    @ApiModelProperty(value = "权限编码")
    private String authorityCode;

    /**
     * 权限名称
     */
    @Column(name = "authority_name")
    @NotEmpty(message = "权限名称不能为空")
    @ApiModelProperty(value = "权限名称")
    private String authorityName;

    /**
     * 权限状态
     */
    @Column(name = "status")
    @ApiModelProperty(value = "权限状态")
    private String status;

    /**
     * 权限url
     */
    @Column(name = "url")
    @NotEmpty(message = "权限url不能为空")
    @ApiModelProperty(value = "权限url")
    private String url;

}